﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

public partial class Bukong_Bukong : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void GridView1_DataBound(object sender, EventArgs e)
    {
        //GridViewRow bottomPagerRow = GridView1.BottomPagerRow;
        //Label bottomPagerNo = new Label();
        //bottomPagerNo.Text = "目前所在分页码(" + (GridView1.PageIndex + 1) + "/" + GridView1.PageCount + ")";
        //bottomPagerRow.Cells[0].Controls.Add(bottomPagerNo);
    }
    protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
    {
        if (Roles.IsUserInRole(User.Identity.Name, "admin") || Roles.IsUserInRole(User.Identity.Name, "bukong"))
        {
        }
        else
        {
            this.ClientScript.RegisterClientScriptBlock(this.GetType(), "", "alert( '对不起，您没有录入补孔数据的权限! ');", true);
        }
    }
}